<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.org/ui"
                template="/templates/ui.xhtml">

    <ui:define name="head">
        <title>地图环境及中心点维护</title>
        <script type="text/javascript" src="#{request.contextPath}/UI/support/pub.js"/>
        <script type="text/javascript" language="javascript">
            document.onkeydown = function TabReplace() {
                if (event.keyCode == 13) {
                    if (event.srcElement.tagName != 'BUTTON')
                        event.keyCode = 9;
                    else
                        event.srcElement.click();
                }
            }
        </script>

    </ui:define>
    <ui:define name="content">
          <h:form id ="form">
              <p:panelGrid columns="3">
              <h:outputLabel for="projectName" value="项目名称"/>
              <p:selectOneMenu id="projectName" value="#{thMapAction.selectedProjectPid}"
                               style="width: 145px;">
                  <f:selectItem itemLabel="" itemValue=""/>
                  <f:selectItems value="#{thMapAction.projectInfoMaps}"/>
              </p:selectOneMenu>
                  <p:commandButton value="删除" actionListener="#{thMapAction.dropProject()}" update="projectName"/>
              </p:panelGrid>
          </h:form>
    </ui:define>
</ui:composition>

